#include "scene.h"

namespace t2c2 {
	
Scene::Scene(const Color& _background) : background(_background) {

}
	
Scene::Scene(void) {
	background = Color(0.0,0.0,0.0);
}
	
Scene::~Scene(void) {
	
}

void Scene::add_patch(Patch* _patch) {
	patches.push_back(_patch);
}

Patch* Scene::get_patch(unsigned int _index) {
	return patches.at(_index); // at(_index) is the same operator[] , but safer
}

unsigned int Scene::size_patches(void) const {
	return patches.size();
}

}
